<template>
  <div>
    <h1>shop{{this.$route.params.id}}</h1>
    <h2>prop传递参数{{id}}</h2>
  </div>
</template>

<script>
  export default {
    name: "Home",
    props: { /* props传递参数 */
      id: {
        type: [String, Number],
        default: 0
      }
    }


  }
</script>

<style scoped>

</style>
